//
//  CustomAddressCell.m
//  仿京东地址选择器
//
//  Created by up72_2017_new on 2018/6/22.
//  Copyright © 2018年 up72_2017_new. All rights reserved.
//

#import "CustomAddressCell.h"

@implementation CustomAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(CGCommonItemModel *)model {
    _model = model;
    if (!model.isSelected) {
        _addressLabel.textColor = [UIColor blackColor];
        _addressLabel.text = model.title;
        _selectedImgView.hidden = YES;
    } else {
        _addressLabel.textColor = [UIColor redColor];
        _addressLabel.text = model.title;
        _selectedImgView.hidden = NO;
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
